﻿#ifndef SCANRULESERVICE_H
#define SCANRULESERVICE_H

#include <QObject>
#include "scanruledao.h"

class ScanRuleService : public QObject
{
    Q_OBJECT
public:
    explicit ScanRuleService(QObject *parent = nullptr);
    ~ScanRuleService();
    bool getList(QList<ScanRule> &list);
    bool getOne(ScanRule &object);
    bool saveOne(ScanRule &object);
    bool deleteOne(ScanRule &object);
    QSqlDatabase getDb() const;

private:
    QSqlDatabase db;
};

#endif // SCANRULESERVICE_H
